package com.zhss.dfs.datanode.server;

/**
 * @author: zcl
 * @date: 2021/1/27 20:49
 * @description: dataNode 中基本的信息
 */
public class DataNodeInfo {
    private String IP;
    private String port;
    private String dataNodeName;

    public DataNodeInfo(String IP, String port, String dataNodeName) {
        this.IP = IP;
        this.port = port;
        this.dataNodeName = dataNodeName;
    }

    public String getIP() {
        return IP;
    }

    public void setIP(String IP) {
        this.IP = IP;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getDataNodeName() {
        return dataNodeName;
    }

    public void setDataNodeName(String dataNodeName) {
        this.dataNodeName = dataNodeName;
    }

    @Override
    public String toString() {
        return "DataNodeInfo{" +
                "IP='" + IP + '\'' +
                ", port='" + port + '\'' +
                ", dataNodeName='" + dataNodeName + '\'' +
                '}';
    }
}
